<?php


//define(ROOT_PATH, dirname(__FILE__));
header("Content-type: text/html; charset=utf-8");

require (dirname(__FILE__) . '/config.php');

$c = empty($_REQUEST['c']) ? 'index' : $_REQUEST['c'];
$a = empty($_REQUEST['a']) ? 'index' : $_REQUEST['a'];
$g = empty($_GET)  ? array() : $_GET;
$p = empty($_POST) ? array() : $_POST;

if(file_exists("action/$c.php")) require "action/$c.php";

if(function_exists("$a")) $a();
//to_ajax(0,'001');